﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sofire.DataComm.Remoting;
using Sofire.DataComm.Remoting.Client;

namespace DataCommTest.RemotingTest
{
    public class RemotingClientTestDemo : ITest
    {
        public RemotingClientTestDemo()
        {
            ProxyFactory<IRemoteServer>.Register("Test", "tcp://localhost:8001/One/HelloService.v", "test", "123456");
        }
        public void Test()
        {
            ProxyFactory<IRemoteServer>.Remote((remote) => remote.Add(3, 5));
            // Console.WriteLine(ProxyFactory<IRemoteServer>.Remote((remote) => remote.Add(3, 5)));
        }

    }
}
